import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;


public class WriteText {

	public static void writeGameStatLine(GameStat gs, File file) throws IOException{
		PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(file, true)));
		//PrintWriter out = new PrintWriter(file);
		out.println(gs.getBuyIn()+" "+gs.getPlace()+" "+gs.getEarning()+" "+gs.getProfit());
		out.close();
	}
}
